﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using Newtonsoft.Json;

namespace StevensReceipts.Domain
{
    public class ReceiptItem : IEntity
    {

        public int Id { get; set; }

        public DateTime? Created { get; set; }

        public DateTime? Modified { get; set; }

        public double UnitPrice { get; set; }

        public double Quantity { get; set; }

        public int ReceiptId { get; set; }
        [ForeignKey("ReceiptId")]
        [JsonIgnore]
        public virtual Receipt Receipt { get; set; }

    }
}
